package com.yijiu.trb;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.yijiu.resource.CacheData;

/**
 * 激活成功提示页面
 * 
 * @author TangChao
 */
public class ActiveDoneActivity extends BTitleActivity
{
	private final static String TAG = "ACTIVE_DONE_ACTIVITY";

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_active_done);
		findViewsInit();
	}

	private void findViewsInit()
	{
		titleView.setText("验证成功");
	}

	public void activeDoneClick(View v)
	{
		CacheData.REAL_NAME_STATUS = "";
		CacheData.LOGIN_STATUS = false;
		CacheData.CERT_NUM = "";
		switch (v.getId())
		{
			case R.id.btn_active_done_login:
				startActivity(new Intent(this, LoginActivity.class));
				finish();
				break;
			case R.id.btn_active_done_real_info:
				initIntent(this, RealInfoActivity.class, "TAG", TAG);
				finish();
				break;
			default:
				break;
		}
	}
}
